﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCSelectEmp.ascx.cs" Inherits="InstrumentCheck.WebUI.UserControl.UCSelectEmp" %>
<script type="text/javascript">
    function returnUserValue(strEmpNO, strEmpChiName, strEngName, strDeptNO, strExtNO) {
        SetApplicantValue(strEmpNO, strEmpChiName, strEngName, strDeptNO, strExtNO);
    }
</script>

<table style="width:400px;height:auto;">
    <tr style="background-color:#A9BFF9;height:10px;">
    <td style="text-align:left;">
        <table>
            <tr>
                <td style="width:98%;text-align:left;font-weight:bold;">儀器校驗系統</td>
                <td style="width:2%;text-align:right"><img src="../images/close.jpg" alt="Close" onclick="Unlock();" onmouseover="this.style.cursor='hand'" /></td>
            </tr>
        </table> 
    </td>
    </tr>
    <tr>
        <td align="left">
            <asp:DropDownList ID="ddlCondition" Width="100px" runat="server">
                <asp:ListItem Value="resak004">英文名</asp:ListItem>
                <asp:ListItem Value="resak002">中文名</asp:ListItem>
            </asp:DropDownList>
            &nbsp;&nbsp;
            <asp:TextBox runat="server" ID="txtKeyWord" Width="100px"></asp:TextBox> &nbsp;&nbsp;
            <asp:Button ID="btnQuery" runat="server" Text="開始查找" onclick="btnQuery_Click" />
        </td>           
    </tr>
    <tr style="height:10px">
        <td>
            <asp:TextBox ID="txtCondition" runat="server" CssClass="hide"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:GridView ID="gvUser" runat="server" AutoGenerateColumns="False" 
                AllowPaging="True" onpageindexchanging="gvUser_PageIndexChanging" 
                onrowdatabound="gvUser_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="EmpNO" HeaderText="員工代號" />
                    <asp:BoundField DataField="EmpChineseName" HeaderText="中文名" />
                    <asp:BoundField DataField="EmpEngName" HeaderText="英文名" />
                    <asp:BoundField DataField="DeptNO" HeaderText="部門代號" />
                    <asp:BoundField DataField="ExtNO" HeaderText="分機號碼" />
                </Columns>
            </asp:GridView>        
        </td>
    </tr>        
</table>
